import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-9
 * Time: 上午11:32
 * To change this template use File | Settings | File Templates.
 */
public class BoFactory {
    static ApplicationContext appContext;

    static {
        appContext = new ClassPathXmlApplicationContext("zhenqu-appcontext.xml");
    }

    public Object get(String bo_name){
        return appContext.getBean(bo_name);
    }
}
